home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************
- *
- * $Source: /unixb/home/unixlib/source/unixlib37/src/clib/h/RCS/kernel,v $
- * $Date: 1996/10/30 21:58:58 $
- * $Revision: 1.2 $
- * $State: Rel $
- * $Author: unixlib $
- *
- * This file is intended to provide an interface between UnxiLib and
- * DeskLib, for the few _kernel calls that it uses. Any simularity between
- * this and the Norcroft kernel.h file is probably due to having to use
- * identical structs.
- *
- * $Log: kernel,v $
- * Revision 1.2 1996/10/30 21:58:58 unixlib
- * Massive changes made by Nick Burret and Peter Burwood.
- *
- * Revision 1.1 1996/04/19 21:02:57 simon
- * Initial revision
- *
- ***************************************************************************/
-
- #ifndef __KERNEL_H
- #define __KERNEL_H
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- typedef struct {
- int r[10];
- } _kernel_swi_regs;
-
- typedef struct {
- int load, exec;
- int start, end;
- } _kernel_osfile_block;
-
- typedef struct {
- int errnum;
- char errmess[252];
- } _kernel_oserror;
-
- extern int _kernel_fpavailable(void);
-
- #define _kernel_NONX 0x80000000
- extern _kernel_oserror *_kernel_swi(int no, _kernel_swi_regs *in,
- _kernel_swi_regs *out);
-
- extern int _kernel_osfile(int op, const char *name, _kernel_osfile_block *inout);
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif
-